package machine;

import java.util.List;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Guilherme
 */
public class Batch {

    private MongoDB db;
    private double avgDocumentLenght = 0;

    public Batch() {
        this.db = new MongoDB();
    }

    public boolean connectDB() {
        return this.db.connect();
    }
    
    public int docLen() {
        return db.getDocumentLenght();
    }

    public double getAvgBD() {
        return db.getAvgDocument();
    }

    public List[] getDocumentList(String processedQuery) {
        String[] splitedQuery = processedQuery.split(" ");
        for (int i = 0; i < splitedQuery.length; i++) {
            List list = db.fillList(splitedQuery[i]);
        }
        return null;
    }

}
